package com.qin.service;

import java.util.List;

import com.qin.entity.OrderBook;

/**
 * 订单图书服务
 * @author BestRiven
 *
 */
public interface OrderBookService {
	
	/**
	 * 插入一条订单里的图书记录
	 * @param orderBook
	 * @return
	 */
	public Long insertOrderBook(OrderBook orderBook);
	
	
	/**
	 * 批量插入多条订单图书
	 * @param orderBook
	 * @return
	 */
	public int[] insertOrderBooks(List<OrderBook> orderBooks);
	
	/**
	 * 根据订单的id查询所有的订单里面的图书
	 * @param id
	 * @return
	 */
	public  List<OrderBook> queryOrdersBookByOrderId(Long id);
	
}
